package design.patterns.commandmodel.audioplayerdemo;

/**
 * @Desc:   具体命令类
 * @author: cww
 * @DateTime: 2020-06-13 10:56
 */

public class PlayCommand extends Command {
     private AudioPlayer myAudio;

    public PlayCommand(AudioPlayer myAudio) {
        this.myAudio = myAudio;
    }

    @Override
    public void execute() {
        myAudio.play();
    }


}
